﻿<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Periodos.aspx.cs" Inherits="Admin_Usuarios" Title="Untitled Page" %>

<%@ Register Assembly="customCalendar" Namespace="customCalendar" TagPrefix="cc1" %>

<%@ Register Src="../../Controles/CboGeneric.ascx" TagName="CboGeneric" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" Runat="Server">


<fieldset><table><tr><td>Sede</td><td>
<uc1:CboGeneric id="cboSede" runat="server" TipoOrigen="Tabla" NameId="IdSede" NameDescript="DescripcionSede" SourceData="Sedes"></uc1:CboGeneric>
</td></tr>
<tr><td>Tipo Planilla</td>
<td><uc1:CboGeneric id="CboTipoPlanilla" runat="server"></uc1:CboGeneric></td></tr>
</table>

</fieldset>

<fieldset runat="server" id="formFields" visible="false" >
<table><tr style="display:none" ><td class="input-caption">IdPeriodo</td><td><asp:TextBox ID="txtIdPeriodo" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption" style="height: 26px">Fecha Desde</td><td style="height: 26px">
    <cc1:webCalendar ID="WebCalendar1" runat="server" RutaImagen="calendar/images/cal.gif"
        RutaJavaScript="calendar/popcalendar.js" Validable="true" />
</td></tr>
<tr><td class="input-caption">Fecha Hasta</td><td>
    <cc1:webCalendar ID="WebCalendar2" runat="server" RutaImagen="calendar/images/cal.gif"
        RutaJavaScript="calendar/popcalendar.js" Validable="true" />
</td></tr>
<tr style="display:none" ><td class="input-caption">Activa</td><td><asp:TextBox ID="txtActiva" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr style="display:none" ><td class="input-caption">Anio</td><td><asp:TextBox ID="txtAnio" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr style="display:none" ><td class="input-caption">Estado</td><td><asp:TextBox ID="txtEstado" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr style="display:none" ><td class="input-caption" >IdSede</td><td><asp:TextBox ID="txtIdSede" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Nro Periodo</td><td><asp:TextBox ID="txtNroPeriodo" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Orden Periodo</td><td><asp:TextBox ID="txtOrdenPeriodo" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Descripcion</td><td><asp:TextBox ID="txtDescripcion" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Particion</td><td><asp:TextBox ID="txtParticion" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr style="display:none" ><td class="input-caption">idTipoPlanilla</td><td><asp:TextBox ID="txtidTipoPlanilla" runat="server" cssClass="input-text"></asp:TextBox></td></tr>
<tr><td class="input-caption">Cuatrimestral</td><td>
    <asp:CheckBox ID="chkCuatrimestral" runat="server" Width="229px" /></td></tr>
<tr><td colspan='2'></td></tr><tr><td colspan='2' class='barButtons'>
<asp:Button ID='cmdAccion' runat='server' Text='Aceptar'  CssClass='input-button'  OnClick="cmdAccion_Click" />
<asp:Button ID='cmdCancelar' runat='server' CssClass='input-button' Text='Cancelar' /></td></tr>
</table></fieldset>





 <asp:GridView ID="GridView1" runat="server"
        AutoGenerateColumns="False"
        EmptyDataText="No hay registros de datos para mostrar." 
        OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 
        OnRowDeleting="GridView1_RowDeleting" 
        OnPageIndexChanged="GridView1_PageIndexChanged" 
        OnPageIndexChanging="GridView1_PageIndexChanging" 
        >
        <Columns>
                <asp:BoundField DataField="idPeriodo" HeaderText="Id" />
                <asp:BoundField DataField="Periodo" HeaderText="Periodo" />
                <asp:BoundField DataField="Desde" HeaderText="Desde" />
                <asp:BoundField DataField="Hasta" HeaderText="Hasta" />
                    <asp:TemplateField HeaderText="Estado">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("estado") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ckhBox" runat="server" Checked="false" />
                        </ItemTemplate>
                    </asp:TemplateField>
                <asp:BoundField DataField="NroPeriodo" HeaderText="NroPeriodo" />
                <asp:BoundField DataField="OrdenPeriodo" HeaderText="OrdenPeriodo" />
                <asp:BoundField DataField="Idtipo" HeaderText="Cuatrimestral" />
               
              <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <div id="noprint">
                                    <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
                                        ImageUrl="~/Images/b_edit.gif" Text="Ver" />
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
            <asp:TemplateField>
            <ItemTemplate>
                <div id="noprint">
                    <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Delete"
                        ImageUrl="~/Images/delete.gif" Text="Delete" />
                </div>
            </ItemTemplate>
            </asp:TemplateField>
            
        </Columns>
    </asp:GridView>


</asp:Content>

